import cv2 as cv
import numpy as np
import argparse
import imutils

ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True, help="The Path To Image")
args = vars(ap.parse_args())

image = cv.imread(args["image"])
resized = imutils.resize(image, width=100, inter=cv.INTER_NEAREST)
B, G, R = resized[74, 20]
print("R = {r}, G = {g}, B = {b}".format(r=R, g=G, b=B))

resized = imutils.resize(image, width=int(image.shape[1] * 2), inter=cv.INTER_CUBIC)
B, G, R = resized[367, 170]
print("R = {r}, G = {g}, B = {b}".format(r=R, g=G, b=B))
